// 14 收费管理 6 客服系统
export default {
  path: '/chargemanage',
  name: 'chargemanage',
  icon: 'money-collect',
  authority: ['cs:antd:charge'],
  routes: [
    {
      path: '/chargemanage/customerbilling',
      name: 'customerbilling',
      authority: ['cs:charge:custbill'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/chargemanage/customerbilling',
          redirect: '/chargemanage/customerbilling/index',
        },
        {
          path: '/chargemanage/customerbilling/index',
          component: './ChargeManage/CustomerBilling/Index',
        },
        {
          path: '/chargemanage/customerbilling/detail',
          name: 'detail',
          component: './ChargeManage/CustomerBilling/Detail',
        },

        {
          path: '/chargemanage/customerbilling/billingsplit',
          name: 'billingsplit',
          component: './ChargeManage/CustomerBilling/SelectStepsFirst',
        },

        // 收费管理 - 客户账单 - 列表 -拆单 - 第二步 按照雇员拆分
        {
          path: '/chargemanage/customerbilling/splitbymployee',
          name: 'splitbymployee',
          component: './ChargeManage/CustomerBilling/SelectStepsSecond',
        },

        // 收费管理 - 拆分账单 - 列表 -拆单 - 第三步  按照雇员拆分完成
        {
          path: '/chargemanage/customerbilling/splitbymployeefinish',
          name: 'splitbyproductfinish',
          component: './ChargeManage/CustomerBilling/SelectStepsFinish',
        },

        {
          path: '/chargemanage/customerbilling/tobilllist',
          name: 'tobilllist',
          component: './ChargeManage/CustomerBilling/ToBillList',
        },
      ],
    },
    {
      path: '/chargemanage/onebilling',
      name: 'onebilling',
      authority: ['cs:charge:once'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/chargemanage/onebilling',
          redirect: '/chargemanage/onebilling/index',
        },
        {
          path: '/chargemanage/onebilling/index',
          component: './ChargeManage/OnceChargeCs/Index',
        },
        {
          path: '/chargemanage/onebilling/customeradd',
          name: 'customeradd',
          component: './ChargeManage/OnceChargeCs/CustomerAdd',
        },
        {
          path: '/chargemanage/onebilling/customerupdate',
          name: 'customerupdate',
          component: './ChargeManage/OnceChargeCs/CustomerUpdate',
        },
        {
          path: '/chargemanage/onebilling/customerdetail',
          name: 'customerdetail',
          component: './ChargeManage/OnceChargeCs/CustomerDetail',
        },
        {
          path: '/chargemanage/onebilling/employeeadd',
          name: 'employeeadd',
          component: './ChargeManage/OnceChargeCs/EmployeeAdd',
        },
        {
          path: '/chargemanage/onebilling/employeeupdate',
          name: 'employeeupdate',
          component: './ChargeManage/OnceChargeCs/EmployeeUpdate',
        },
        {
          path: '/chargemanage/onebilling/employeedetail',
          name: 'employeedetail',
          component: './ChargeManage/OnceChargeCs/EmployeeDetail',
        },
        {
          path: '/chargemanage/onebilling/supplieradd',
          name: 'supplieradd',
          component: './ChargeManage/OnceChargeCs/SupplierAdd',
        },
        {
          path: '/chargemanage/onebilling/supplierupdate',
          name: 'supplierupdate',
          component: './ChargeManage/OnceChargeCs/SupplierUpdate',
        },
        {
          path: '/chargemanage/onebilling/supplierdetail',
          name: 'supplierdetail',
          component: './ChargeManage/OnceChargeCs/SupplierDetail',
        },
      ],
    },
    {
      path: '/chargemanage/supplybilling',
      name: 'supplybilling',
      authority: ['cs:charge:suppbill'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/chargemanage/supplybilling',
          redirect: '/chargemanage/supplybilling/index',
        },
        {
          path: '/chargemanage/supplybilling/index',
          component: './ChargeManage/SupplyBilling/Index',
        },
        {
          path: '/chargemanage/supplybilling/detail',
          name: 'detail',
          component: './ChargeManage/SupplyBilling/Detail',
        },
        {
          path: '/chargemanage/supplybilling/tobill',
          name: 'tobill',
          component: './ChargeManage/SupplyBilling/ToBill',
        },
        {
          path: '/chargemanage/supplybilling/split',
          name: 'split',
          component: './ChargeManage/SupplyBilling/Split',
        },
        {
          path: '/chargemanage/supplybilling/splitbyemp',
          name: 'splitbyemp',
          component: './ChargeManage/SupplyBilling/SplitByEmp',
        },
        {
          path: '/chargemanage/supplybilling/finish',
          name: 'finish',
          component: './ChargeManage/SupplyBilling/Finish',
        },
      ],
    },
  ],
};
